import tkinter as tk


class Window(object):
    def __init__(self, title: str):
        self.title = title
        self._win = tk.Tk()
        self._win.title(self.title)

    def win(self):
        return self._win

    def show(self):
        self._win.mainloop()

    def hide(self):
        self._win.destroy()
